import axios from 'axios'

export function myForEach(array: any[], callback: (item: any, index: number) => any) {
    for(let i=0; i<array.length; i++){
        callback(array[i], i)
    }
}

export function getList(){
    return axios.get('/users.json').then(resp => resp.data);
}